package com.fary.applicationlistener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author Fary
 * @version 1.0
 * @description: TODO
 * @date 2022/4/9 15:47
 */
@Slf4j
public class MyApplicationListener implements ApplicationListener {

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        log.info(event.getSource().getClass().getName());
    }
}
